package com.gjx.leetcode;

import java.util.List;

class Node {
    public int val;
    public Node left;
    public Node right;
    public Node next;

    public Node() {}

    public Node(int _val,Node _left,Node _right,Node _next) {
        val = _val;
        left = _left;
        right = _right;
        next = _next;
    }
    
    
    public List<Node> neighbors;
    public Node(int _val, List<Node> _neighbors) {
    	val = _val;
    	neighbors = _neighbors;
    }
    
    public Node random;
    
    public Node(int _val, Node _next, Node _random) {
    	val = _val;
    	next = _next;
    	random = _random;
    }
};